﻿
namespace Test30.Engine
{
    public class RestoreAllAction : Action
    {
        public RestoreAllAction(Hero hero)
            : base(hero)
        {
        }

        protected override ActionResult OnProcess()
        {
            Hero hero = (Hero)Entity;

            hero.Stats.Strength.Restore();
            hero.Stats.Agility.Restore();
            hero.Stats.Stamina.Restore();
            hero.Stats.Will.Restore();
            hero.Stats.Intellect.Restore();
            hero.Stats.Charisma.Restore();

            return ActionResult.Done;
        }
    }
}
